
// Fonts
//@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600");

// Variables
@import "variables";

// Bootstrap
@import "~bootstrap-sass/assets/stylesheets/bootstrap";

//通用样式
body{
  font-family:Hiragino Sans GB, "Hiragino Sans GB", Helvetica, "Microsoft YaHei", Arial,sans-serif;
}

/* 顶部导航 */
.navbar-static-top{
  border-color:#e7e7e7;
  background-color:#fff;
  box-shadow:0px 1px 11px 2px rgba(42,42,42,0.1);
  border-top:4px solid #00b5ad;
  margin-bottom:40px;
  margin-top:0px;
}

/* 底部样式 */
html{
  position:relative;
  min-height:100%;
}
body{
  margin-bottom:60px;
}

.footer{
  position:absolute;
  bottom:0px;
  width:100%;
  height:60px;
  background-color:#000;
  .container{
    padding-right:15px;
    padding-left:15px;

    p{
      margin:19px 0px;
      color: #c1c1c1;

      a{
        color:inherit;
      }
    }

  }
}


.products-index-page,.products-favorites-page {
  .pagination{
    margin-right:5px;
  }

  .search-form{
    padding:0 20px;
    margin-bottom:10px;
    padding-bottom:10px;
    border-bottom:1px solid #eee;
  }

  .products-list {
    padding: 0 15px;
    .product-item {
      padding: 0 5px;
      margin-bottom: 10px;
      .product-content {
        border: 1px solid #eee;
        .top {
          padding: 5px;
          img {
            width: 100%;
          }
          .price {
            margin-top: 5px;
            font-size: 20px;
            color: #ff0036;
            b {
              font-size: 14px;
            }
          }
          .title {
            margin-top: 10px;
            font-size: 12px;
          }
        }
        .bottom {
          font-size: 12px;
          display: flex;
          .sold_count span {
            color: #b57c5b;
            font-weight: bold;
          }
          .review_count span {
            color: #38b;
            font-weight: bold;
          }
          &>div {
            &:first-child {
              border-right: 1px solid #eee;
            }
            padding: 10px 5px;
            line-height: 12px;
            flex-grow: 1;
            border-top: 1px solid #eee;
          }
        }
      }
    }
  }
}

.products-show-page {
  .cover {
    width: 100%;
    border: solid 1px #eee;
    padding: 30px 0;
  }
  .title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  .price {
    label {
      width: 69px;
      color: #999;
      font-size: 12px;
      padding-left: 10px;
    }
    em {
      font-family: Arial;
      font-size: 18px;
      font-style: normal;
      text-decoration: none;
      vertical-align: middle;
    }
    span {
      font-family: Arial;
      font-size: 24px;
      font-weight: bolder;
      text-decoration: none;
      vertical-align: middle;
    }
    line-height: 30px;
    background-color: #e9e9e9;
    color: red;
    font-size: 20px;
  }
  .sales_and_reviews {
    border-top: 1px dotted #c9c9c9;
    border-bottom: 1px dotted #c9c9c9;
    margin: 5px 0 10px;
    display: flex;
    flex-drection: row;
    font-size: 12px;
    &>div {
      &.sold_count,&.review_count {
        border-right: 1px dotted #c9c9c9;
      }
      width: 33%;
      text-align: center;
      padding: 5px;
      .count {
        color: #FF0036;
        font-weight: 700;
      }
    }
  }
  .skus {
    &>label {
      color: #999;
      font-size: 12px;
      padding: 0 10px 0 10px;
    }
    .btn-group {
      margin-left: -10px;
      label {
        border-radius: 0 !important;
        margin: 1px 5px;
        padding: 2px 5px;
        font-size: 12px;
      }
      .btn-default.active, .btn-default:hover {
        margin-top: 0px !important;
        background: #fff !important;
        border: 2px solid red !important;
      }
      .btn.focus {
        outline: 0 !important;
      }
    }
  }
  .cart_amount {
    label {
      color: #999;
      font-size: 12px;
      padding: 0 10px 0 10px;
    }
    font-size: 12px;
    color: #888;
    margin: 10px 0 20px;
    input {
      width: 50px;
      display: inline-block;
      border-radius: 0 !important;
    }
    span {
      color: #999;
      font-size: 12px;
      padding-left: 10px;
    }
  }
  .buttons {
    padding-left: 44px;
  }

  .product-detail  {
    .nav.nav-tabs > li > a {
      border-radius: 0 !important;
    }
    margin: 20px 0;
    .tab-content {
      border: 1px solid #eee;
      padding: 20px;
    }
  }
}

.cart-index-page{
  .product_list{
    .preview{
      img{
        max-width:80px;max-height:80px;
      }
      margin-right:20px;
    }

    .product_info{
      display:flex;
      flex-direction:row;
      align-items:flex-start;
      font-size:12px;
      .product_title,.sku_title,.warning{
        display:block;
      }

      .product_title a{
        color:#3c3c3c;
        font-size:14px;
      }

      .not_on_sale{
        .product_title,.sku_title{
          text-decoration:line-through;
        }
        .warning{
          color:red;
        }
      }
    }

    .price{
      font-size:12px;
      font-weight:700;
      color:#3c3c3c;
    }

    input.amount{
      width:60px;
      border-radius:0 !important;
    }
  }
}
